<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge，chrome=1">

    <title>添加课程信息</title>

    <link rel="stylesheet" href="/static/css-lib/bootstrap.min.css" />
    <link rel="stylesheet" href="/static/css-lib/bootstrap-select.min.css" />
    <link rel="stylesheet" href="/static/css-cus/flatpickr.css" />

    <style>
        .form-header {
            margin-left: 20px;
        }
        .from-input {
            display: inline;
            width: 50%;
            margin-left: 20px;
        }
        .item-border {
            border-left: none;
            border-right: none;
        }
    </style>
</head>
<body>
    <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" href="#">课程信息</a>
            </div>
            <div style="position: absolute;top: 10px;right: 30px;">
                <button id="sub-btn" type="button" class="btn btn-primary">提交</button>
            </div>
        </div>
    </nav>

    <div class="container-fluid list-group" style="margin-top: 55px;">
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 list-group-item item-border">
                <label for="select-student" class="control-label form-header">选择学生</label>
                <div style="width: 50%;margin-left: 20px;">
                    <select id="select-student" class="form-control" data-live-search="true">
                        <option value="0" selected>请选择</option>
                    </select>
                </div>
            </div>
            <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 list-group-item item-border">
                <label for="course-name" class="control-label form-header">学生课程</label>
                <br/>
                <input type="text" id="course-name" class="form-control from-input" value="" disabled />
            </div>
        </div>

        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 list-group-item item-border">
                <label for="class-name" class="control-label form-header">课时名称</label>
                <br/>
                <input type="text" id="class-name" class="form-control from-input" placeholder="1~40个字符" maxlength="40" minlength="1" />
            </div>
            <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 list-group-item item-border">
                <label for="class-time" class="control-label form-header">上课时间</label>
                <br/>
                <input type="datetime-local" id="class-time" class="form-control from-input" />
            </div>
        </div>

        <div class="row list-group-item item-border">
            <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
                <label for="class-comment" class="control-label" style="margin-left: 5px;">课时备注</label>
                <br/>
                <textarea id="class-comment" class="form-control" style="margin-left: 5px;" placeholder="40个字符以内" maxlength="40"></textarea>
            </div>
        </div>
    </div>

    <!-- 错误提示框 -->
    <div id="error-box" class="modal fade" tabindex="-1" data-backdrop="false">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                    <h4 class="modal-title">错误</h4>
                </div>
                <div id="error-content" class="modal-body"></div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                </div>
            </div>
        </div>
    </div>

    <script src="/static/js-lib/jquery-3.4.1.min.js"></script>
    <script src="/static/js-lib/bootstrap-select.min.js"></script>
    <script src="/static/js-cus/teacher/flatpickr.js"></script>
    <script src="/static/js-cus/teacher/Console-Frame-AddClass.js"></script>
</body>
</html>